package com.foreknow.oopTest;

/**
 * @author shkstart
 * @create 2021-07-23 13:44
 */
public class Notbook {
    private char color;
    private int cpu;

    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    public int getCpu() {
        return cpu;
    }

    public void setCpu(int cpu) {
        this.cpu = cpu;
    }

    public Notbook() {
    }

    public Notbook(char color, int cpu) {
        this.color = color;
        this.cpu = cpu;
    }

    /**
     *输出相关信息
     */
     public void getAll(){
         System.out.println("颜色"+this.getColor()+",cpu型号"+this.getCpu());
     }

    public static void main(String[] args) {
        Notbook notbook=new Notbook('A',800);
        notbook.getAll();
    }
}
